<!--<div class="row-fluid margin_topbot10 login_side"> 
    <div class="top_login">
        <img style="float: left"  src="<?php echo Yii::app()->theme->GetBaseUrl() ?>/assets/img/people.png" alt="">
        <a href="#">Thành viên</a><br/>
        <?php if (count($user) == 0) { ?> <a href="<?php echo Yii::app()->getBaseUrl(true) ?>/thanh-vien/dang-ky.html">Đăng ký thành viên</a> <?php } else {
        echo '<p>&nbsp</p>';
    } ?>
    </div>end .top_login
    <div class="body_login">
            <?php if (count($user) > 0) { ?>
            <div class="row-fluid align_center">Thành viên <?php
            if ($user->premium == 1) {
                echo "<b class='red'>VIP</b>";
            }
            ?>  </div>
            <div class="row-fluid align_center"><?php $avt = ($user->avatar == '') ? 'no-avt.png' : $user->avatar ?><img src="<?php echo Yii::app()->getBaseUrl(true) ?>/data/avatar/<?php echo $avt ?>"></div>
            <div class="row-fluid align_center"><b><?php echo $user->username ?></b></div>
            <div class="row-fluid align_center"><a href="<?php echo Yii::app()->getBaseUrl(true)?>/thanh-vien/<?php echo $user->id?>">Vào trang cá nhân</a>|<a href="<?php echo Yii::app()->getBaseUrl(true)?>/thanh-vien/logout.html">Thoát</a></div>
            <div class="row-fluid margin20"></div>
        <?php } else { ?>
            <?php
            $form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
                'id' => 'verticalForm',
                'action' => Yii::app()->getBaseUrl(true) . "/thanh-vien/dang-nhap.html",
                'enableClientValidation' => true,
                'clientOptions' => array(
                    'validateOnSubmit' => true,
                ),
                    ));
            ?>
            <?php echo $form->textFieldRow($iUser, 'username', array('placeholder' => 'Tên đăng nhập', 'class' => 'span12')); ?>
            <?php echo $form->passwordFieldRow($iUser, 'password', array('placeholder' => '**********', 'class' => 'span12')); ?>

    <?php $this->widget('bootstrap.widgets.TbButton', array('buttonType' => 'submit', 'label' => 'Đăng nhập', 'htmlOptions' => array('class' => 'btn btn-info btn-small', 'style' => 'border-radius: 12px;
padding: 4px 20px;'))); ?>
            <div class="checkbox" style="margin-left:-12px;margin-top:8px"> <?php echo $form->checkboxRow($iUser, 'rememberMe'); ?> <a href="#">Quên mật khẩu?</a>
            </div>
            <?php $this->endWidget(); ?>
            <?php
        }
        ?>
    </div>end .body_login 
</div <!-- end login_side -->
            
            
            <div class="row-fluid login_side"> 
                <ul id="login_signup">
                    <li class="signup_button">
                       <?php  if((count($user) == 0)){
                           echo "<a href='/register.php'>Sign Up</a>";
                       }else{
                           echo "<a href='".Yii::app()->getBaseUrl(true)."/thanh-vien/".$user->id.".html'>Profiles</a>";
                       } ?>
                    </li>
                    <li id="loginTabWrap" class="li-right">
                    <?php  if((count($user) == 0)){
                             echo "<a class='fancybox_ajax' href='#login_form_fc' alt='".Yii::app()->getBaseUrl(true)."/member/login.html'>Login</a>";
                       }else{
                           echo "<a href='".Yii::app()->getBaseUrl(true)."/thanh-vien/logout.html'>Log Out</a>";
                       } ?>
                      
                    
                    </li>
                </ul>
            </div> <!-- end login_side -->
            
            <div id="login_form_fc" style="display:none">
                <section class="main">
                    <form class="form-2-x-y" method="post" id="login_form_fancy">
        <h1><span class="log-in">Log in</span> or <span class="sign-up"><a href="<?php echo Yii::app()->getBaseUrl(true)?>/thanh-vien/dang-ky.html">sign up</a></span></h1>
        <div class="floatL row-fluid hidden_error hide"><div class="my_error">Invail username or password</div></div>
        
        <div class="clearfix"></div>
        <p class="float">
            <label for="login"><i class="icon-user"></i>Username</label>
            <input type="text" name="UserLoginForm[username]" placeholder="Username">
        </p>
        <p class="float relative">
            <label for="password"><i class="icon-lock"></i>Password</label>
            <input type="password" name="UserLoginForm[password]" placeholder="Password" class="showpassword">
            
        </p>
        <p class="clearfix" style="padding-top:20px"> 
            <img class="loading_animate" src="<?php echo Yii::app()->getBaseUrl(true)?>/themes/default/assets/img/325.gif" alt="loading">
            <a href="#" class="log-twitter">Log in with Facebook</a>   
            <input type="submit" class="submit-login" name="submit_bnt_login" value="Log in">
            <input type="hidden" name="ajax" value="true">
        </p>
    </form>
</section>

</div>
